<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Mine\MineModel;

/**
 * @property int $id 
 * @property string $article_name 文档名称
 * @property int $cate_id 分类ID
 * @property string $content 文档内容
 * @property int $status 状态：0=禁用 1=正常
 * @property int $sort 排序
 * @property int $view 访问量
 * @property int $type 类型：0=说明文档 1=接口文档
 * @property int $created_by 创建者
 * @property int $updated_by 更新者
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 更新时间
 */
class ChApiDoc extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_api_doc';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'article_name', 'cate_id', 'content', 'status', 'sort', 'view', 'type', 'created_by', 'updated_by', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'cate_id' => 'integer', 'status' => 'integer', 'sort' => 'integer', 'view' => 'integer', 'type' => 'integer', 'created_by' => 'integer', 'updated_by' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
